import { createRouter, createWebHistory } from 'vue-router'
import DashboardView from '@/views/DashboardView.vue'
import UsersView from '@/views/UsersView.vue'
import SettingView from '@/views/SettingView.vue'
import OrderView from '@/views/OrderView.vue'
import ProductView from '@/views/ProductView.vue'

 const routes = [
  { path: '/', name: 'Dashboard', component: DashboardView },
  { path: '/order', name: 'order', component: OrderView },
  { path: '/product', name: 'product', component: ProductView },
  { path: '/users', name: 'Users', component: UsersView },
  { path: '/settings', name: 'Settings', component: SettingView },
 ]

 const router = createRouter({
  history: createWebHistory(),
  routes,
 })

 export default router